from sqlmodel import Field, SQLModel, Index
from typing import Optional

class XmArchiveBase(SQLModel):
    """用户藏品表基础模型"""
    archiveId: int = Field(default=0, index=True, description="用户藏品ID")
    archiveName: str = Field(default="", max_length=128, description="用户藏品名称")
    archiveImg: str = Field(default="", max_length=255, description="用户藏品图片URL")
    platformId: int = Field(default=0, description="藏品发行平台ID")

class XmArchiveCreate(XmArchiveBase):
    """用户藏品表创建模型"""
    pass